package com.yyk.dzvisit.enums;

import com.yyk.dzvisit.core.aop.IError;

public enum BizErrorEnum implements IError {


    SUCCESS(200, "业务成功"),

    HIS_REMOTE_EXCEPTION(400, "HIS调用失败！"),
    LK_REMOTE_EXCEPTION(400, "LK调用失败！"),
    YB_REMOTE_EXCEPTION(400, "YB调用失败！"),

    HIS_PARAM_EXCEPTION(401, "HIS数据转换异常！"),
    LK_PARAM_EXCEPTION(401, "LK数据转换异常！"),

    //HIS返0,一般这种是需要获取message的
    HIS_BIZ_EXCEPTION(402, "HIS业务异常"),
    //LK返0,一般这种是需要获取message的
    LK_BIZ_EXCEPTION(402, "LK业务异常"),
    //本服务涉及的业务异常
    BIZ_EXCEPTION(300, "服务业务异常"),

    SERVICE_EXCEPTION(500, "服务内部异常！");

    private int baseCode;

    private String desc;

    BizErrorEnum(int baseCode, String desc) {
        this.baseCode = baseCode;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return 0;
    }

    @Override
    public String getDesc() {
        return null;
    }
}
